package com.mt.mtyx.search.api;

import com.mt.mtyx.entity.search.SkuEs;
import com.mt.mtyx.search.service.SkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author WMT
 * @Date 2023/9/21 18:06
 */
@RestController
@RequestMapping("/api/search/sku")
public class SkuApiController {

    @Autowired
    private SkuService skuService;

    /**
     * 获取爆款商品列表
     *
     * @return
     */
    @GetMapping("/inner/getHotSkuList")
    public List<SkuEs> getHotSkuList(){
        return skuService.getHotSkuList();
    }
}
